home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 October: Technology Seed / ADC Seed CD - October 1999.toast / FireWire / FireWire_2.1_SDK_DR3 / Source / AVTransport / Build next >
Encoding:
Text File  |  1999-05-17  |  1.4 KB  |  73 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        Build
  3. #
  4. #    Contains:    Commands to build AV transport control sample code.
  5. #
  6. #    Written by:    Erik Staats
  7. #
  8. #    Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  9. #
  10. #    Change History (most recent first):
  11. #
  12. #       <FW4>     6/28/96    ES        Put quotes in the right place.
  13. #       <FW3>     6/28/96    ES        Added quotes for setting commands.
  14. #       <FW2>     6/20/96    ES        Filled in contains and written by fields.
  15. #       <FW1>     6/20/96    ES        first checked in
  16. #
  17. #
  18.  
  19. set Commands `Directory`::Tools:,"{Commands}"
  20. export Commands
  21.  
  22. unset BuildTargets
  23.  
  24. ################################################################################
  25. #
  26. # Parse parameters.
  27. #
  28.  
  29. for parm in {"Parameters"}
  30.  
  31. # full build option
  32.     if "{parm}" =~ /-e/
  33.         set DoFullBuild 1
  34.         export DoFullBuild
  35.         continue
  36.     end
  37.  
  38. # default is a build target
  39.     set BuildTargets "{BuildTargets} {parm}"
  40.  
  41. end
  42.  
  43. ################################################################################
  44. #
  45. # Build all targets.
  46. #
  47.  
  48. for BuildTarget in {BuildTargets}
  49.  
  50.     if {DoFullBuild}
  51.         Echo "# `Date -t` ----- Full Build of {BuildTarget}."
  52.     else
  53.         Echo "# `Date -t` ----- Build of {BuildTarget}."
  54.     end
  55.     Echo "# `Date -t` ----- Analyzing dependencies."
  56.  
  57.     Begin
  58.         Echo "Set Echo 1"
  59.         if {DoFullBuild}
  60.             make -e -f MakeFile "{BuildTarget}"
  61.         else
  62.             make -f MakeFile "{BuildTarget}"
  63.         end
  64.     End > "{BuildTarget}".makeout
  65.  
  66.     Echo "# `Date -t` ----- Executing build commands."
  67.     "{BuildTarget}".makeout
  68.     delete -y "{BuildTarget}".makeout
  69.  
  70.     Echo "# `Date -t` ----- Done."
  71.  
  72. end
  73.